package com.itcast.cn.mapper;

import com.itcast.cn.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

   // @Select("SELECT * FROM  tb_user WHERE username = #{name} AND  password =#{psd}")
    User select(@Param("name") String userName,@Param("psd") String passWord);

    User haveSameName(@Param("name") String userName);

    void saveData(User user);
}
